<?php
/**
 * Search a MedicalStudy -
 *
 * @author Xavier VILAIN
 *
 */
use Fox\SearchEngine;
use Fox\Generator;
use Nawa\MedicalStudy;
use Fox\Html\Button;

$searchScreen = new Fox\Html\Screen\Search\Basic('search',new MedicalStudy(),array('label' => false),null,10);
$searchScreen->searchEngineOptions(SearchEngine::MODE_LIKE);
$searchScreen->screen()->pageTitle(Msg(Nawa\Messages::BUNDLE,Nawa\Messages::STUDY_SEARCH));
$searchScreen->screen()->toolbar()->add(new Button('create',Generator::url('medicalstudies','create')));
$searchScreen->grid(Xview::instance()->component('medicalstudies','result'));
echo $searchScreen->render();